<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>基本信息</title>
	<link rel="shortcut icon" href="favicon.ico"> <link href="__PUBLIC__/Theme1/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
	<link href="__PUBLIC__/Theme1/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
	<link href="__PUBLIC__/Theme1/css/plugins/iCheck/custom.css" rel="stylesheet">
	<link href="__PUBLIC__/Theme1/css/animate.min.css" rel="stylesheet">
	<link href="__PUBLIC__/Theme1/css/style.min.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
	<div class="row">
		<div class="col-sm-12">
			<div class="ibox float-e-margins">
				<div class="ibox-title">
					<h5>基本信息<small></small></h5>
					<div class="ibox-tools">
						<a class="collapse-link">
							<i class="fa fa-chevron-up"></i>
						</a>
						<a class="dropdown-toggle" data-toggle="dropdown" href="form_basic.html#">
							<i class="fa fa-wrench"></i>
						</a>
						<a class="close-link">
							<i class="fa fa-times"></i>
						</a>
					</div>
				</div>

				<div class="ibox-content">
					<form method="post" action="{:U('Admin/Weixin/setconfig')}" class="form-horizontal" enctype="multipart/form-data">
						<input type="hidden" value="{$config.id}" name="id">

						<if condition="$storeId eq 0">
							<div class="form-group">
								<label class="col-sm-2 control-label">店铺名称</label>
								<div class="col-sm-4">
									<select id="category2" class="form-control" required name="store_id">
										<option value="0" >请选择..</option>
										<volist name="store" id="vo">
											<option value="{$vo['store_id']}" <if condition="$config.store_id eq $vo['store_id']"> selected </if>>{$vo['store_name']}</option>
										</volist>
									</select>
								</div>
							</div>
						</if>

						<div class="form-group">
							<label class="col-sm-2 control-label">公众号</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" name="num" id="num" placeholder="请输入公众号名称" value="{$config.num}" required >
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label">url</label>
							<div class="col-sm-10">
								<input type="text" readonly="readonly" class="form-control" value="{$url}">
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label">token</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" name="token" id="token" placeholder="请输入token" value="{$config.token}">
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label">appid</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" name="appid" id="appid" placeholder="请输入appid" value="{$config.appid}">
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label">appsecret</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" name="appsecret" id="appsecret" placeholder="请输入appsecret" value="{$config.appsecret}">
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label">encodingaeskey</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" name="encodingaeskey" id="encodingaeskey" placeholder="请输入encodingaeskey" value="{$config.encodingaeskey}">
							</div>
						</div>

						<div class="hr-line-dashed"></div>
						<div class="form-group">
							<div class="col-sm-4 col-sm-offset-2">
								<button class="btn btn-primary" type="submit">保存</button>
								<a class="btn btn-white" href="{:U('Admin/Index/welcome')}">返回</a>
							</div>
						</div>

					</form>
				</div>
			</div>
		</div>
	</div>
</div>

<script src="__PUBLIC__/Theme1/js/jquery.min.js?v=2.1.4"></script>
<script src="__PUBLIC__/Theme1/js/bootstrap.min.js?v=3.3.6"></script>
<script src="__PUBLIC__/Theme1/js/content.min.js?v=1.0.0"></script>
<script src="__PUBLIC__/Theme1/js/plugins/iCheck/icheck.min.js"></script>
<script>
    $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
</script>
</body>

</html>
